﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Model
{
    /// <summary>
    /// RESPONSABILITY: calculate the bonus for Marketing role
    /// </summary>
   public class MarketingBonus : IBonusWage
   {
       private const double BONUS = 20;
       private const double PERCENT = 100;
       private static double PERCENTAGE=(BONUS/PERCENT);

       public double CalculateWage(Employee employee)
       {
           return (PERCENTAGE * employee.BaseWage);
       }
   }

    /// <summary>
    /// RESPONSABILITY: calculate the bonus for Development role
    /// </summary>
   public class DevelopmentBonus : IBonusWage
   {
       private const double BONUS = 10;
       private const double PERCENT = 100;
       private static double PERCENTAGE =(BONUS / PERCENT);

       public double CalculateWage(Employee employee)
       {
           int NowTime = DateTime.Now.Year;
           int employeeHiredate = employee.HireDate.Year;
           int ExperienceYears = NowTime - employeeHiredate;
           return (ExperienceYears * (PERCENTAGE * employee.BaseWage)); 
       }
   }

    /// <summary>
    /// RESPONSABILITY: calculate the bonus for Design role
    /// </summary>
   public class DesignBonus : IBonusWage
   {
       private const double BONUS = 15;
       private const double PERCENT = 100;
       private static double PERCENTAGE = (BONUS / PERCENT);
       
       public double CalculateWage(Employee employee)
       {
           return (PERCENTAGE * employee.BaseWage);
       }
   }

   
}
